package com.balance.anole.client.retail.vo;

import java.util.ArrayList;
import java.util.List;

public class RetailReceiptPrintVO {

	private String receiptSn;

	private String needPay;

	private String paid;

	private String change;

	private String cashier;

	private String seller;

	private String date;

	private List<ProductItemDetail> productItems = new ArrayList<ProductItemDetail>();
	private List<PaymentItemDetail> paymentItems = new ArrayList<PaymentItemDetail>();

	public String getReceiptSn() {
		return receiptSn;
	}


	public void setReceiptSn(String receiptSn) {
		this.receiptSn = receiptSn;
	}


	public String getNeedPay() {
		return needPay;
	}


	public void setNeedPay(String needPay) {
		this.needPay = needPay;
	}


	public String getPaid() {
		return paid;
	}


	public void setPaid(String paid) {
		this.paid = paid;
	}


	public String getChange() {
		return change;
	}


	public void setChange(String change) {
		this.change = change;
	}


	public String getCashier() {
		return cashier;
	}


	public void setCashier(String cashier) {
		this.cashier = cashier;
	}


	public String getSeller() {
		return seller;
	}


	public void setSeller(String seller) {
		this.seller = seller;
	}


	public String getDate() {
		return date;
	}


	public void setDate(String date) {
		this.date = date;
	}

	@SuppressWarnings("unchecked")
	public List<ProductItemDetail> getProductItemDetails(){
		return (List<ProductItemDetail>) ((ArrayList)this.productItems).clone();
	}

	public void addProductItem(ProductItemDetail productItem){
		this.productItems.add(productItem);
	}

	@SuppressWarnings("unchecked")
	public List<PaymentItemDetail> getPaymentItemDetails(){
		return (List<PaymentItemDetail>) ((ArrayList)this.paymentItems).clone();
	}

	public void addPaymentItem(PaymentItemDetail paymentItem){
		this.paymentItems.add(paymentItem);
	}


	public static class ProductItemDetail{
		private String prodSn;

		private String price;

		private String num;

		private String discount;

		private String amount;

		public String getProdSn() {
			return prodSn;
		}

		public void setProdSn(String prodSn) {
			this.prodSn = prodSn;
		}

		public String getPrice() {
			return price;
		}

		public void setPrice(String price) {
			this.price = price;
		}

		public String getNum() {
			return num;
		}

		public void setNum(String num) {
			this.num = num;
		}

		public String getDiscount() {
			return discount;
		}

		public void setDiscount(String discount) {
			this.discount = discount;
		}

		public String getAmount() {
			return amount;
		}

		public void setAmount(String amount) {
			this.amount = amount;
		}
	}

	public static class PaymentItemDetail{
		private String paymentDesc;

		private String paidValue;

		public String getPaymentDesc() {
			return paymentDesc;
		}

		public void setPaymentDesc(String paymentDesc) {
			this.paymentDesc = paymentDesc;
		}

		public String getPaidValue() {
			return paidValue;
		}

		public void setPaidValue(String paidValue) {
			this.paidValue = paidValue;
		}

	}

}
